import request from "@/utils/request";
const url = "/dict/";

export interface ListParamsDict extends ListQueryParams {}

export function list(params: ListParamsDict): Promise<IResponse<DictFace[]>> {
  return request({
    url: url + "list",
    method: "GET",
    params,
  });
}

export function del(id: IDType): Promise<IResponse<void>> {
  return request({
    url: url + "del",
    method: "delete",
    params: {
      id,
    },
  });
}
